home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Using CW9 with ODF
- Sent: 5/25/96 7:39 AM
- Received: 5/28/96 8:25 AM
- From: Masahiro Abe, m_abe@sainet.or.jp
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- At 17:06 96.05.23 -0700, Henri Lamiraux wrote:
- >--Emailer_-1378882723
- >Content-Type: text/plain; charset="US-ASCII"
- >
- >I have enclosed a document explaining how to use CW9 with ODF. Using CW9
- >you should now be able to build ODF based parts for both PPC and 68K.
- >
- >.......................................................................
- > Henri Lamiraux lamiraux@apple.com
- > Apple Computer, Inc. OpenDoc(tm) Development Framework
- >.......................................................................
-
- Thanks Henri for kindly and timely providing valuable info.
-
- Note. Suggested modification causes compile error for FWPriMem.cpp.
-
- Document "CW9 Conversion" states:
-
- [DOCUMENT BEGIN]
- 1) Use the Metrowerks set_new_handler instead of the ODF set_new_handler
-
- - Open the file: ODF:Found:FWCommon:Sources:FWPriMem.cpp
- Add the following two lines:
-
- // built with ODF.
-
- #if defined(FW_DONT_USE_STD_LIB_SET_NEW_HANDLER) <-------- New Line
-
- static pfvv gNewHandler = 0;
-
- #ifndef _MSC_VER
-
- .......
-
- extern "C" int _callnewh(size_t /* size */)
- {
- return 1;
- }
-
- #endif
-
- #endif <-------- New Line
- [DOCUMENT END]
-
- This case, gNewHandler is undefined. It should be:
-
- // built with ODF.
-
- static pfvv gNewHandler = 0;
-
- #if defined(FW_DONT_USE_STD_LIB_SET_NEW_HANDLER) <-------- New Line
-
- #ifndef _MSC_VER
-
- .......
-
- extern "C" int _callnewh(size_t /* size */)
- {
- return 1;
- }
-
- #endif
-
- #endif <-------- New Line
-
- Is this OK?
-
- With this change and others suggested, built 68k parts ran fine, except
- ODFButton. When the stationary file is opened, it reports "error in OpenDoc
- or part". I'll try to figure out this, but I appreciate if anybody can
- suggest anything.
- #####################################################################
- ##### Masahiro Abe <Internet : m_abe@sainet.or.jp > #####
- ##### <Niftyserve : BXA03713@niftyserve.or.jp> #####
- #####################################################################
-